﻿<%@ Control Language="C#" ClassName="ChuongTrinhChiTietFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Loai Thoi Gian Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataLoaiThoiGianId" DataSourceID="LoaiThoiGianIdLoaiThoiGianDataSource" DataTextField="TenLoaiThoiGian" DataValueField="LoaiThoiGianId" SelectedValue='<%# Bind("LoaiThoiGianId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:LoaiThoiGianDataSource ID="LoaiThoiGianIdLoaiThoiGianDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">So Thoi Gian:</td>
				<td>
					<asp:TextBox runat="server" ID="dataSoThoiGian" Text='<%# Bind("SoThoiGian") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataSoThoiGian" runat="server" Display="Dynamic" ControlToValidate="dataSoThoiGian" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataSoThoiGian" runat="server" Display="Dynamic" ControlToValidate="dataSoThoiGian" ErrorMessage="Invalid value" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Doanh So:</td>
				<td>
					<asp:TextBox runat="server" ID="dataDoanhSo" Text='<%# Bind("DoanhSo") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDoanhSo" runat="server" Display="Dynamic" ControlToValidate="dataDoanhSo" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataDoanhSo" runat="server" Display="Dynamic" ControlToValidate="dataDoanhSo" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Chuong Trinh Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataChuongTrinhId" DataSourceID="ChuongTrinhIdChuongTrinhDataSource" DataTextField="TenChuongTrinh" DataValueField="ChuongTrinhId" SelectedValue='<%# Bind("ChuongTrinhId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ChuongTrinhDataSource ID="ChuongTrinhIdChuongTrinhDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Last Update:</td>
				<td>
					<asp:TextBox runat="server" ID="dataLastUpdate" Text='<%# Bind("LastUpdate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataLastUpdate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataLastUpdate" runat="server" Display="Dynamic" ControlToValidate="dataLastUpdate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Update By:</td>
				<td>
					<asp:TextBox runat="server" ID="dataUpdateBy" Text='<%# Bind("UpdateBy") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


